package top.yesz.home.service.impl;

import com.google.common.collect.Lists;
import top.yesz.home.service.IGoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

import top.yesz.home.pojo.User;

@Slf4j
@Service
public class GoServiceImpl implements IGoService {

    @Override
    public List<Object> aspectCommit(User user) {
        System.out.println("打印::::" + user);
        ArrayList<Object> list = Lists.newArrayList();
        list.add(user.toString());
        list.add(selectUU(2));
        list.add(selectUU(3));
        return list;
    }

    User selectUU(int i) {
        User user = new User();
        user.setName("姓名+" + i);
        user.setAge(1 + i);
        return user;
    }
}

